/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 数据表模板Entity
 * @author fanqinglong
 * @version 2018-05-30
 */
public class InsTableTemplate extends DataEntity<InsTableTemplate> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 模板名称
	private String fullName;		// 中文名称
	private InsCategory category;		// 分类id
	private InsTemplate template;		// xml模板id(预留)
	private Integer sort;		// sort
	private List<InsField> insFieldList = Lists.newArrayList();		// 参数列表
	
	public InsTableTemplate() {
		super();
	}

	public InsTableTemplate(String id){
		super(id);
	}

	@Length(min=0, max=64, message="模板名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="中文名称长度必须介于 0 和 64 之间")
	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public InsCategory getCategory() {
		return category;
	}

	public void setCategory(InsCategory category) {
		this.category = category;
	}

	public InsTemplate getTemplate() {
		return template;
	}

	public void setTemplate(InsTemplate template) {
		this.template = template;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public List<InsField> getInsFieldList() {
		return insFieldList;
	}

	public void setInsFieldList(List<InsField> insFieldList) {
		this.insFieldList = insFieldList;
	}
}